//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using System.Web.UI;

namespace Mindscape.Web.UI.WebControls.Validation
{
  public class BusinessRuleFailedValidator : IValidator
  {
    private string _message;

    public BusinessRuleFailedValidator(string message)
    {
      _message = message;
    }

    #region IValidator Members

    public string ErrorMessage
    {
      get { return _message; }
      set { _message = value; }
    }

    public bool IsValid
    {
      get { return false; }
      set { }
    }

    public void Validate()
    {
    }

    #endregion
  }
}